package com.cmdi.feign;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * @Description: CustomFeignBlockException
 * @Author: gaozb
 * CustomFeignBlockException：如果返回其他异常（非BlockException），熔断规则会将这个异常作为熔断异常条件进入熔断判断
 * 如果返回了一个BlockException，那么即使抛出了异常，那么也不会进入熔断判断
 */
public class CustomFeignBlockException extends BlockException {
    public CustomFeignBlockException(String message, Throwable cause) {
        super(message, cause);
    }

    public CustomFeignBlockException(String ruleLimitApp, String message) {
        super(ruleLimitApp, message);
    }
}